3.1614 \(\int \frac{(b+2 c x) \sqrt{d+e x}}{a+b x+c x^2} \, dx\)

Optimal. Leaf size=291 \[ -\frac{\sqrt{2} \left (2 c \left (d \sqrt{b^2-4 a c}-2 a e\right )+b e \left (b-\sqrt{b^2-4 a c}\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}\right )}{\sqrt{c} \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}+\frac{\sqrt{2} \left (b e \left (\sqrt{b^2-4 a c}+b\right )-2 c \left (d \sqrt{b^2-4 a c}+2 a e\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}\right )}{\sqrt{c} \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+4 \sqrt{d+e x} \]

[Out]

4*Sqrt[d + e*x] - (Sqrt[2]*(b*(b - Sqrt[b^2 - 4*a*c])*e + 2*c*(Sqrt[b^2 - 4*a*c]
*d - 2*a*e))*ArcTanh[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[2*c*d - (b - Sqrt[b^2
- 4*a*c])*e]])/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e
]) + (Sqrt[2]*(b*(b + Sqrt[b^2 - 4*a*c])*e - 2*c*(Sqrt[b^2 - 4*a*c]*d + 2*a*e))*
ArcTanh[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e]]
)/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e])

_______________________________________________________________________________________

Rubi [A]  time = 1.94434, antiderivative size = 291, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143 \[ -\frac{\sqrt{2} \left (2 c \left (d \sqrt{b^2-4 a c}-2 a e\right )+b e \left (b-\sqrt{b^2-4 a c}\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}\right )}{\sqrt{c} \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}+\frac{\sqrt{2} \left (b e \left (\sqrt{b^2-4 a c}+b\right )-2 c \left (d \sqrt{b^2-4 a c}+2 a e\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}\right )}{\sqrt{c} \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+4 \sqrt{d+e x} \]

Antiderivative was successfully verified.

[In]  Int[((b + 2*c*x)*Sqrt[d + e*x])/(a + b*x + c*x^2),x]

[Out]

4*Sqrt[d + e*x] - (Sqrt[2]*(b*(b - Sqrt[b^2 - 4*a*c])*e + 2*c*(Sqrt[b^2 - 4*a*c]
*d - 2*a*e))*ArcTanh[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[2*c*d - (b - Sqrt[b^2
- 4*a*c])*e]])/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e
]) + (Sqrt[2]*(b*(b + Sqrt[b^2 - 4*a*c])*e - 2*c*(Sqrt[b^2 - 4*a*c]*d + 2*a*e))*
ArcTanh[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e]]
)/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e])

_______________________________________________________________________________________

Rubi in Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((2*c*x+b)*(e*x+d)**(1/2)/(c*x**2+b*x+a),x)

[Out]

Timed out

_______________________________________________________________________________________

Mathematica [A]  time = 0.401044, size = 288, normalized size = 0.99 \[ \frac{\sqrt{2} \left (c \left (4 a e-2 d \sqrt{b^2-4 a c}\right )+b e \left (\sqrt{b^2-4 a c}-b\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{e \sqrt{b^2-4 a c}-b e+2 c d}}\right )}{\sqrt{c} \sqrt{b^2-4 a c} \sqrt{e \left (\sqrt{b^2-4 a c}-b\right )+2 c d}}+\frac{\sqrt{2} \left (b e \left (\sqrt{b^2-4 a c}+b\right )-2 c \left (d \sqrt{b^2-4 a c}+2 a e\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{c} \sqrt{d+e x}}{\sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}\right )}{\sqrt{c} \sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}+4 \sqrt{d+e x} \]

Antiderivative was successfully verified.

[In]  Integrate[((b + 2*c*x)*Sqrt[d + e*x])/(a + b*x + c*x^2),x]

[Out]

4*Sqrt[d + e*x] + (Sqrt[2]*(b*(-b + Sqrt[b^2 - 4*a*c])*e + c*(-2*Sqrt[b^2 - 4*a*
c]*d + 4*a*e))*ArcTanh[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[2*c*d - b*e + Sqrt[b
^2 - 4*a*c]*e]])/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d + (-b + Sqrt[b^2 - 4*a*c]
)*e]) + (Sqrt[2]*(b*(b + Sqrt[b^2 - 4*a*c])*e - 2*c*(Sqrt[b^2 - 4*a*c]*d + 2*a*e
))*ArcTanh[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*
e]])/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e])

_______________________________________________________________________________________

Maple [B]  time = 0.045, size = 724, normalized size = 2.5 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((2*c*x+b)*(e*x+d)^(1/2)/(c*x^2+b*x+a),x)

[Out]

4*(e*x+d)^(1/2)+4*c/(-e^2*(4*a*c-b^2))^(1/2)*2^(1/2)/((-b*e+2*c*d+(-e^2*(4*a*c-b
^2))^(1/2))*c)^(1/2)*arctanh(c*(e*x+d)^(1/2)*2^(1/2)/((-b*e+2*c*d+(-e^2*(4*a*c-b
^2))^(1/2))*c)^(1/2))*a*e^2-1/(-e^2*(4*a*c-b^2))^(1/2)*2^(1/2)/((-b*e+2*c*d+(-e^
2*(4*a*c-b^2))^(1/2))*c)^(1/2)*arctanh(c*(e*x+d)^(1/2)*2^(1/2)/((-b*e+2*c*d+(-e^
2*(4*a*c-b^2))^(1/2))*c)^(1/2))*b^2*e^2+2^(1/2)/((-b*e+2*c*d+(-e^2*(4*a*c-b^2))^
(1/2))*c)^(1/2)*arctanh(c*(e*x+d)^(1/2)*2^(1/2)/((-b*e+2*c*d+(-e^2*(4*a*c-b^2))^
(1/2))*c)^(1/2))*b*e-2*c*2^(1/2)/((-b*e+2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2)
*arctanh(c*(e*x+d)^(1/2)*2^(1/2)/((-b*e+2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2)
)*d+4*c/(-e^2*(4*a*c-b^2))^(1/2)*2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c
)^(1/2)*arctan(c*(e*x+d)^(1/2)*2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^
(1/2))*a*e^2-1/(-e^2*(4*a*c-b^2))^(1/2)*2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(
1/2))*c)^(1/2)*arctan(c*(e*x+d)^(1/2)*2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(1/
2))*c)^(1/2))*b^2*e^2-2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2)*arc
tan(c*(e*x+d)^(1/2)*2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2))*b*e+
2*c*2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2)*arctan(c*(e*x+d)^(1/2
)*2^(1/2)/((b*e-2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2))*d

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (2 \, c x + b\right )} \sqrt{e x + d}}{c x^{2} + b x + a}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((2*c*x + b)*sqrt(e*x + d)/(c*x^2 + b*x + a),x, algorithm="maxima")

[Out]

integrate((2*c*x + b)*sqrt(e*x + d)/(c*x^2 + b*x + a), x)

_______________________________________________________________________________________

Fricas [A]  time = 0.286441, size = 497, normalized size = 1.71 \[ -\frac{1}{2} \, \sqrt{2} \sqrt{\frac{2 \, c d - b e + c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} \log \left (\sqrt{2} \sqrt{\frac{2 \, c d - b e + c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} + 2 \, \sqrt{e x + d}\right ) + \frac{1}{2} \, \sqrt{2} \sqrt{\frac{2 \, c d - b e + c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} \log \left (-\sqrt{2} \sqrt{\frac{2 \, c d - b e + c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} + 2 \, \sqrt{e x + d}\right ) - \frac{1}{2} \, \sqrt{2} \sqrt{\frac{2 \, c d - b e - c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} \log \left (\sqrt{2} \sqrt{\frac{2 \, c d - b e - c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} + 2 \, \sqrt{e x + d}\right ) + \frac{1}{2} \, \sqrt{2} \sqrt{\frac{2 \, c d - b e - c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} \log \left (-\sqrt{2} \sqrt{\frac{2 \, c d - b e - c \sqrt{\frac{{\left (b^{2} - 4 \, a c\right )} e^{2}}{c^{2}}}}{c}} + 2 \, \sqrt{e x + d}\right ) + 4 \, \sqrt{e x + d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((2*c*x + b)*sqrt(e*x + d)/(c*x^2 + b*x + a),x, algorithm="fricas")

[Out]

-1/2*sqrt(2)*sqrt((2*c*d - b*e + c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c)*log(sqrt(2)*s
qrt((2*c*d - b*e + c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c) + 2*sqrt(e*x + d)) + 1/2*sq
rt(2)*sqrt((2*c*d - b*e + c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c)*log(-sqrt(2)*sqrt((2
*c*d - b*e + c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c) + 2*sqrt(e*x + d)) - 1/2*sqrt(2)*
sqrt((2*c*d - b*e - c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c)*log(sqrt(2)*sqrt((2*c*d -
b*e - c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c) + 2*sqrt(e*x + d)) + 1/2*sqrt(2)*sqrt((2
*c*d - b*e - c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c)*log(-sqrt(2)*sqrt((2*c*d - b*e -
c*sqrt((b^2 - 4*a*c)*e^2/c^2))/c) + 2*sqrt(e*x + d)) + 4*sqrt(e*x + d)

_______________________________________________________________________________________

Sympy [A]  time = 142.52, size = 1431, normalized size = 4.92 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((2*c*x+b)*(e*x+d)**(1/2)/(c*x**2+b*x+a),x)

[Out]

-4*a*e**2*RootSum(_t**4*(256*a**3*c**2*e**6 - 128*a**2*b**2*c*e**6 - 256*a**2*b*
c**2*d*e**5 + 256*a**2*c**3*d**2*e**4 + 16*a*b**4*e**6 + 128*a*b**3*c*d*e**5 - 1
28*a*b**2*c**2*d**2*e**4 - 16*b**5*d*e**5 + 16*b**4*c*d**2*e**4) + _t**2*(-16*a*
b*c*e**3 + 32*a*c**2*d*e**2 + 4*b**3*e**3 - 8*b**2*c*d*e**2) + c, Lambda(_t, _t*
log(32*_t**3*a**2*b*e**5 - 64*_t**3*a**2*c*d*e**4 - 8*_t**3*a*b**3*e**5/c - 16*_
t**3*a*b**2*d*e**4 + 96*_t**3*a*b*c*d**2*e**3 - 64*_t**3*a*c**2*d**3*e**2 + 8*_t
**3*b**4*d*e**4/c - 24*_t**3*b**3*d**2*e**3 + 16*_t**3*b**2*c*d**3*e**2 + 4*_t*a
*e**2 - 2*_t*b**2*e**2/c + 4*_t*b*d*e - 4*_t*c*d**2 + sqrt(d + e*x)))) + 4*b*d*e
*RootSum(_t**4*(256*a**3*c**2*e**6 - 128*a**2*b**2*c*e**6 - 256*a**2*b*c**2*d*e*
*5 + 256*a**2*c**3*d**2*e**4 + 16*a*b**4*e**6 + 128*a*b**3*c*d*e**5 - 128*a*b**2
*c**2*d**2*e**4 - 16*b**5*d*e**5 + 16*b**4*c*d**2*e**4) + _t**2*(-16*a*b*c*e**3
+ 32*a*c**2*d*e**2 + 4*b**3*e**3 - 8*b**2*c*d*e**2) + c, Lambda(_t, _t*log(32*_t
**3*a**2*b*e**5 - 64*_t**3*a**2*c*d*e**4 - 8*_t**3*a*b**3*e**5/c - 16*_t**3*a*b*
*2*d*e**4 + 96*_t**3*a*b*c*d**2*e**3 - 64*_t**3*a*c**2*d**3*e**2 + 8*_t**3*b**4*
d*e**4/c - 24*_t**3*b**3*d**2*e**3 + 16*_t**3*b**2*c*d**3*e**2 + 4*_t*a*e**2 - 2
*_t*b**2*e**2/c + 4*_t*b*d*e - 4*_t*c*d**2 + sqrt(d + e*x)))) - 2*b*e*RootSum(_t
**4*(256*a**2*c**3*e**4 - 128*a*b**2*c**2*e**4 + 16*b**4*c*e**4) + _t**2*(-16*a*
b*c*e**3 + 32*a*c**2*d*e**2 + 4*b**3*e**3 - 8*b**2*c*d*e**2) + a*e**2 - b*d*e +
c*d**2, Lambda(_t, _t*log(64*_t**3*a*c**2*e**2 - 16*_t**3*b**2*c*e**2 - 2*_t*b*e
 + 4*_t*c*d + sqrt(d + e*x)))) - 4*c*d**2*RootSum(_t**4*(256*a**3*c**2*e**6 - 12
8*a**2*b**2*c*e**6 - 256*a**2*b*c**2*d*e**5 + 256*a**2*c**3*d**2*e**4 + 16*a*b**
4*e**6 + 128*a*b**3*c*d*e**5 - 128*a*b**2*c**2*d**2*e**4 - 16*b**5*d*e**5 + 16*b
**4*c*d**2*e**4) + _t**2*(-16*a*b*c*e**3 + 32*a*c**2*d*e**2 + 4*b**3*e**3 - 8*b*
*2*c*d*e**2) + c, Lambda(_t, _t*log(32*_t**3*a**2*b*e**5 - 64*_t**3*a**2*c*d*e**
4 - 8*_t**3*a*b**3*e**5/c - 16*_t**3*a*b**2*d*e**4 + 96*_t**3*a*b*c*d**2*e**3 -
64*_t**3*a*c**2*d**3*e**2 + 8*_t**3*b**4*d*e**4/c - 24*_t**3*b**3*d**2*e**3 + 16
*_t**3*b**2*c*d**3*e**2 + 4*_t*a*e**2 - 2*_t*b**2*e**2/c + 4*_t*b*d*e - 4*_t*c*d
**2 + sqrt(d + e*x)))) + 4*c*d*RootSum(_t**4*(256*a**2*c**3*e**4 - 128*a*b**2*c*
*2*e**4 + 16*b**4*c*e**4) + _t**2*(-16*a*b*c*e**3 + 32*a*c**2*d*e**2 + 4*b**3*e*
*3 - 8*b**2*c*d*e**2) + a*e**2 - b*d*e + c*d**2, Lambda(_t, _t*log(64*_t**3*a*c*
*2*e**2 - 16*_t**3*b**2*c*e**2 - 2*_t*b*e + 4*_t*c*d + sqrt(d + e*x)))) + 4*sqrt
(d + e*x)

_______________________________________________________________________________________

GIAC/XCAS [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((2*c*x + b)*sqrt(e*x + d)/(c*x^2 + b*x + a),x, algorithm="giac")

[Out]

Timed out